package system

import (
	v1 "bottle/api/v1"
	"github.com/gin-gonic/gin"
)

type BlacklistRouter struct{}

func (p *PaperRouter) InitBlacklistRouter(Router *gin.RouterGroup) {
	paperRouter := Router.Group("bottle")
	blacklistApi := v1.ApiGroupApp.SystemApiGroup.BlacklistApi
	{
		paperRouter.POST("addBlacklist", blacklistApi.AddBlacklist) //扔漂流瓶
		paperRouter.POST("isBlackUser", blacklistApi.IsBlackUser) //是否拉黑该用户
		paperRouter.POST("delBlacklist", blacklistApi.DelBlacklist) //取消拉黑该用户
		paperRouter.GET("queryBlacklist", blacklistApi.QueryBlacklist) //查询拉黑的用户
		paperRouter.POST("isBlackOther", blacklistApi.IsBlackOther) //双方时候有一人拉黑另外一人
	}

}
